﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuiZe.education.Model
{
    public class ResourceCenterModel : ModelBase
    {
        public int id { get; set; }
        public string kind_name { get; set; }

        ObservableCollection<respResourcekinditemModel> _resources;
        public ObservableCollection<respResourcekinditemModel> resources
        {
            get { return _resources; }
            set
            {
                _resources = value;
                OnPropertyChanged("resources");
            }
        }
    }


    public class ReqresourceCenterModel
    {

        public string token { get; set; }
    }
    public class ReqresourceCenterModel2
    {
        public string token { get; set; }
        public int id { get; set; }
        public int limit { get; set; }
        public int p { get; set; }
    }
    public class ReqresourceDetailModel
    {

        public string token { get; set; }
        public int id { get; set; }
        public string filetype { get; set; }
        public int limit { get; set; }

    }
    public class ReqreMysourceModel
    {

        public string token { get; set; }

        public string filetype { get; set; }


    }
    public class ReqreMysourceModel2
    {

        public string token { get; set; }

        public int limit { get; set; }
        public int p { get; set; }


    }

    public class ReqAddCollectionModel
    {

        public string token { get; set; }
        public int id { get; set; }


    }




    public class respResourceMainModel : ModelBase
    {
        public int code { get; set; }
        public string msg { get; set; }
        public string time { get; set; }
        public respResourceChildModel data { get; set; }
    }

    public class respResourceChildModel : ModelBase
    {
        public int id { get; set; }
        public string kind_name { get; set; }
        public resKindItemMainModel data { get; set; }
        public respResourcekinditemModel kind_item { get; set; }
    }

    public class respResourceChildModel_Ethan : ModelBase
    {
        public int id { get; set; }
        public string resources_name { get; set; }
        public string file { get; set; }
        public string ext_name { get; set; }
        public int shownum { get; set; }
        public int createtime { get; set; }
        public int collection { get; set; }
        public int collectionnum { get; set; }
        public string res_type_text { get; set; }
        public string[] rotation_img_text { get; set; }
        public string lyric_text { get; set; }
    }

    public class respResourceDetailModel
    {

        public int id { get; set; }
        public int resources_kind_id { get; set; }
        public string kind_item_name { get; set; }
        public int kind_item_id { get; set; }
    }

    public class respResourcekinditemMainModel
    {
        public int total { get; set; }
        public string per_page { get; set; }
        public int current_page { get; set; }
        public int last_page { get; set; }
        public List<respResourcekinditemModel> data { get; set; }
    }

    public class resKindItemMainModel
    {
        public int total { get; set; }
        public string per_page { get; set; }
        public int current_page { get; set; }
        public int last_page { get; set; }
        public List<resKindItemModel> data { get; set; }
    }

    public class resKindItemModel
    {
        public int id { get; set; }
        public int attachment_id { get; set; }
        public string resources_name { get; set; }
        public string desc { get; set; }
        public int kind_item_id_class { get; set; }
        public int kind_item_id_course { get; set; }
        public string file { get; set; }
        public string image { get; set; }
        public string file_size { get; set; }
        public string ext_name { get; set; }
        public string status { get; set; }
        public int shownum { get; set; }
        public string rotation_img { get; set; }
        public int rotation_times { get; set; }
        public string lyric { get; set; }
        public string pathjson { get; set; }
        public int download_num { get; set; }
        public int weigh { get; set; }
        public int createtime { get; set; }
        public int updatetime { get; set; }

        public int res_type { get; set; }
        public int admin_id { get; set; }
        public string res_type_text { get; set; }
        public string[] rotation_img_text { get; set; }
        public string lyric_text { get; set; }
    }

    public class respResourcekinditemModel
    {
        public int id { get; set; }
        public int resources_kind_id { get; set; }
        public string kind_item_name { get; set; }
        public int updatetime { get; set; }
        public int deletetime { get; set; }
        public string image { get; set; }
        public int shownum { get; set; }
        public int collection { get; set; }
        public int collectionnum { get; set; }
        public int kind_item_id { get; set; }
    }

    public class resBKCategoryCourseMainModel
    {
        public resBKCategoryCourseOtherModel kind_item { get; set; }
        public resBKCategoryCourseModel data { get; set; }


    }
    public class resBKCategoryCourseOtherModel
    {

        public int id { get; set; }
        public int resources_kind_id { get; set; }
        public string kind_item_name { get; set; }
        public int updatetime { get; set; }
        public int deletetime { get; set; }
        public string image { get; set; }
        public int shownum { get; set; }
        public int collection { get; set; }
        public int collectionnum { get; set; }
        public int kind_item_id { get; set; }

    }

    public class resBKCategoryCourseModel
    {

        public int total { get; set; }
        public int per_page { get; set; }
        public int current_page { get; set; }
        public int last_page { get; set; }
        public List<resBKCategoryCourseChildModel> data { get; set; }

    }
    public class resBKCategoryCourseChildModel
    {
        public int id { get; set; }
        public int attachment_id { get; set; }
        public int admin_id { get; set; }
        public string resources_name { get; set; }
        public int res_type { get; set; }
        public string desc { get; set; }
        public int kind_item_id_class { get; set; }
        public int kind_item_id_course { get; set; }
        public int download_num { get; set; }
        public string file_size { get; set; }

        public string ext_name { get; set; }
        public int createtime { get; set; }
        public int updatetime { get; set; }

        public string file { get; set; }
        public string status { get; set; }
        public int weigh { get; set; }

        public int shownum { get; set; }
        public string image { get; set; }

        //public int collection { get; set; }
        //public int collectionnum { get; set; }
        public string res_type_text { get; set; }
    }


    public class resCategoryCourseModel
    {
        public int total { get; set; }
        public int per_page { get; set; }
        public int current_page { get; set; }
        public int last_page { get; set; }
        public List<resCategoryCourseChildModel> data { get; set; }
    }

    public class resCategoryCourseChildModel
    {
        public int id { get; set; }
        public int attachment_id { get; set; }
        public int admin_id { get; set; }
        public string resources_name { get; set; }
        public int res_type { get; set; }
        public string desc { get; set; }
        public int kind_item_id_class { get; set; }
        public int kind_item_id_course { get; set; }
        public int download_num { get; set; }
        public string file_size { get; set; }

        public string ext_name { get; set; }
        public int createtime { get; set; }
        public int updatetime { get; set; }

        public string file { get; set; }
        public string status { get; set; }
        public int weigh { get; set; }

        public int shownum { get; set; }

        public string image { get; set; }

        public int collection { get; set; }
        public int collectionnum { get; set; }
        public string res_type_text { get; set; }
    }

    public class resMyResourceModel
    {
        public int total { get; set; }
        public int per_page { get; set; }
        public int current_page { get; set; }
        public int last_page { get; set; }
        public List<resMyResourceChildModel> data { get; set; }
    }

    public class resMyResourceChildModel
    {
        public int id { get; set; }
        //public int attachment_id { get; set; }
        public int admin_id { get; set; }
        public string resources_name { get; set; }
        public int res_type { get; set; }
        //public int res_type { get; set; }
        public string desc { get; set; }
        public int kind_item_id_class { get; set; }
        public int kind_item_id_course { get; set; }
        public int download_num { get; set; }
        public string file_size { get; set; }

        public string ext_name { get; set; }
        public int createtime { get; set; }
        public int updatetime { get; set; }

        public string file { get; set; }
        public string status { get; set; }
        public int weigh { get; set; }

        public int shownum { get; set; }

        public string image { get; set; }

        public int collection { get; set; }
        public int collectionnum { get; set; }
        public string res_type_text { get; set; }
    }

    public class resMyResourceModel2
    {

        public int total { get; set; }
        public int per_page { get; set; }
        public int current_page { get; set; }
        public int last_page { get; set; }
        public List<resMyResourceChildMainModel2> data { get; set; }

    }

    public class resMyResourceChildMainModel2
    {
        public int id { get; set; }
        public int user_id { get; set; }
        public int c_id { get; set; }
        public string type { get; set; }
        public int createtime { get; set; }
        public int collectionnum { get; set; }
        public int collection { get; set; }

        public resMyResourceChildModel2 ziyuan { get; set; }

    }
    public class resMyResourceChildModel2
    {

        public int id { get; set; }
        //public int attachment_id { get; set; }
        public int resources_kind_id { get; set; }
        public string kind_item_name { get; set; }
        //public int res_type { get; set; }
        ////public int res_type { get; set; }
        //public string desc { get; set; }
        //public int kind_item_id_class { get; set; }
        //public int kind_item_id_course { get; set; }
        //public int download_num { get; set; }
        //public string file_size { get; set; }

        //public string ext_name { get; set; }
        public int updatetime { get; set; }
        public int deletetime { get; set; }

        public string image { get; set; }
        //public string status { get; set; }
        //public int weigh { get; set; }

        public int shownum { get; set; }

        //public string image { get; set; }

        public int collection { get; set; }
        public int collectionnum { get; set; }
        public int kind_item_id { get; set; }


    }


    public class resAddCollectionMainModel
    {

        public int code { get; set; }
        public string msg { get; set; }
        public int time { get; set; }

        public List<resAddCollectionChildModel> data { get; set; }

    }


    public class resAddCollectionChildModel
    {

        public int id { get; set; }

        public int admin_id { get; set; }
        public string resources_name { get; set; }
        public string desc { get; set; }
        public int kind_item_id_class { get; set; }
        public int kind_item_id_course { get; set; }
        public int download_num { get; set; }
        public string file_size { get; set; }

        public string ext_name { get; set; }
        public int createtime { get; set; }
        public int updatetime { get; set; }

        public string file { get; set; }
        public string status { get; set; }
        public int weigh { get; set; }
    }




    public class reqsFileType
    {
        public string name { get; set; }
        public string value { get; set; }


    }

    public class resMyCollectTopModel
    {
        public int total { get; set; }
        public int per_page { get; set; }
        public int current_page { get; set; }
        public int last_page { get; set; }

        public List<resMyCollectMainModel> data { get; set; }
    }
    public class resMyCollectMainModel : ModelBase
    {
        public int id { get; set; }
        public int user_id { get; set; }
        public int c_id { get; set; }
        public string type { get; set; }
        public long createtime { get; set; }
        public int collectionnum { get; set; }
        public int collection { get; set; }
        public resMyCollectDeailModel ziyuan { get; set; }

        ObservableCollection<resKindItemModel> _resources;
        public ObservableCollection<resKindItemModel> resources
        {
            get { return _resources; }
            set
            {
                _resources = value;
                OnPropertyChanged("resources");
            }
        }
    }
    public class resMyCollectDeailModel
    {

        public int id { get; set; }
        public int resources_kind_id { get; set; }
        public string kind_item_name { get; set; }
        public long updatetime { get; set; }
        public long deletetime { get; set; }
        public string image { get; set; }
        public int shownum { get; set; }
        public int kind_item_id { get; set; }
    }






}
